package com.seari.bean.ats;


/**
 * @author TOUC
 * 
 *         列车阻塞信息 CIOS与ATS恢复连接时，ATS立即给CIOS发送识别到的列车阻塞信息，
 *         在双方通信建立期间，列车阻塞信息变化时ATS实时发送。
 *         
 *  消息id为 :ATS_CIOS_BLOCK_INFO	0x1002
 */
public class AtsCiosBlockInfo {
	
	//private static final int msg_id = 4067;
	private int len ;

	private int msg_id;

	// 表示该消息中列车的数目
	private int train_cnt;
	// 列车车体号 ,如果未知 ,则为0
	private int train_unit_number;
	// 列车服务号
	private int train_service_number;

	// 列车运行方向
	private int direction;
	// 列车上行侧车站编号
	private int Station_ID_in_Up_Side;
	// 列车下行侧车站编号
	private int Station_ID_in_Down_Side;

	//为列车停车标记
	private int Stop_flag;

	public int getLen() {
		return len;
	}

	public void setLen(int len) {
		this.len = len;
	}

	public int getMsg_id() {
		return msg_id;
	}

	public void setMsg_id(int msg_id) {
		this.msg_id = msg_id;
	}

	public int getTrain_cnt() {
		return train_cnt;
	}

	public void setTrain_cnt(int train_cnt) {
		this.train_cnt = train_cnt;
	}

	public int getTrain_unit_number() {
		return train_unit_number;
	}

	public void setTrain_unit_number(int train_unit_number) {
		this.train_unit_number = train_unit_number;
	}

	public int getTrain_service_number() {
		return train_service_number;
	}

	public void setTrain_service_number(int train_service_number) {
		this.train_service_number = train_service_number;
	}

	public int getDirection() {
		return direction;
	}

	public void setDirection(int direction) {
		this.direction = direction;
	}

	public int getStation_ID_in_Up_Side() {
		return Station_ID_in_Up_Side;
	}

	public void setStation_ID_in_Up_Side(int station_ID_in_Up_Side) {
		Station_ID_in_Up_Side = station_ID_in_Up_Side;
	}

	public int getStation_ID_in_Down_Side() {
		return Station_ID_in_Down_Side;
	}

	public void setStation_ID_in_Down_Side(int station_ID_in_Down_Side) {
		Station_ID_in_Down_Side = station_ID_in_Down_Side;
	}

	public int getStop_flag() {
		return Stop_flag;
	}

	public void setStop_flag(int stop_flag) {
		Stop_flag = stop_flag;
	}

	@Override
	public String toString() {
		return "AtsCiosBlockInfo{" +
				"len=" + len +
				", msg_id=" + msg_id +
				", train_cnt=" + train_cnt +
				", train_unit_number=" + train_unit_number +
				", train_service_number=" + train_service_number +
				", direction=" + direction +
				", Station_ID_in_Up_Side=" + Station_ID_in_Up_Side +
				", Station_ID_in_Down_Side=" + Station_ID_in_Down_Side +
				", Stop_flag=" + Stop_flag +
				'}';
	}
}
